@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}


// ============== laolu new ==============
.my-bar {
  padding: 10px;
  overflow: hidden;
  background: #f2f6fc;
  .el-form-item {
      margin: 0 0 0 5px;
  }
  .el-form-item__label {
      display: none;
  }
  .el-form-item__content {
      line-height: 1;
  }
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.width-lg {
  max-width: 300px;
}

.width-md {
  max-width: 200px;
}

.width-sm {
  max-width: 150px;
}

.width-auto {
  width: 100% !important;
}

.my-image {
  position: relative;
  border: 1px solid #ddd;
  margin: 0 0 20px;
  min-height: 80px;

  img,
  video {
      display: block;
      max-width: 100%;
      max-height: 100px;
      min-height: 100px;
      height: auto;
      margin: 0 auto;
  }

  p {
      height: 40px;
      box-sizing: border-box;
      margin: 0;
      padding: 0 5px;
      line-height: 40px;
      white-space: nowrap;
      overflow-x: hidden;
      text-overflow: ellipsis;
      width: 100%;
  }

  .action {
      // display: none;
      position: absolute;
      width: 100%;
      height: 34px;
      bottom: 40px;
      margin: 0;
      padding: 0;
      background: rgba(255, 255, 255, 0.8);
      overflow: hidden;
      list-style: none;

      li {
          box-sizing: border-box;
          border-right: 1px solid #ddd;
          float: left;
          width: 50%;
          text-align: center;

          &:last-child {
              border: none;
          }
      }
  }

  &.active {
      .action {
          display: none;
      }
  }
}

.my-radios {
  width: 100%;
  .el-radio {
      display: inline-block;
      width: 15%;
      margin: 5px 0;
  }
}

.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409EFF;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 108px;
  height: 108px;
  line-height: 108px;
  text-align: center;
}
.avatar {
  width: 108px;
  height: 108px;
  display: block;
}

.my-table {
  width: 100%;
  border-collapse: collapse;
  td,
  th {
      text-align: left;
      padding: 5px 10px;
      border: 1px solid #e6e6e6;
  }
  th {
      line-height: 1;
      padding: 10px; // font-weight: 400;
      background: #f2f6fc;
      color: #999;
  }
}